
.logo-name-img {
    width: 90px;
    margin-left: 10px;
}

* {
    padding: 0;
    margin: 0;
}
@media screen and (max-width: 1382px) {
    .header {
        justify-content: center; /* 使子元素水平居中 */
    }
    .logoName,
    .nav,
    .search-form,
    .user-info {
        margin-right: 10px; /* 适当调整子元素之间的间距 */
    }
}
.logoName{
    display: flex
;
    justify-content: center;
    align-items: center;
    margin-right: 77px;
}
@media screen and (min-width: 882px) {
    .header {
        justify-content: center; /* 使子元素水平居中 */
    }
    .logoName,
    .nav,
    .search-form,
    .user-info {
        margin-right: 0px; /* 恢复原有的间距 */
    }
}
/*@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 150dpi) {*/
/*    .header {*/
/*        !*padding: 0 30px;*!*/

/*        justify-content: center;*/
/*    }*/
/*    !*.logoName,*!*/
/*    !*    .nav,*!*/
/*    !*    .search-form,*!*/
/*    !*    .user-info {*!*/
/*    !*        font-size: 12px;*!*/
/*    !*    }*!*/
/*}*/
body {
    background-color: #F3F6F9;
}

.header {
    height: 10vh;
    display: flex
;
    flex-direction: row;
    align-items: center;
    padding: 3px 15px;
    margin: auto auto;
    /* box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.2); */
    /* border-radius: 20px; */
     background-color: white;

}

a {
    text-decoration: none;
    color: #999;
}

nav ul {
    display: flex;
    list-style: none;
    font-size: 20px;
}

li {
    margin-right: 41px;
}

.search-form {
    display: flex;
    align-items: center;
    margin-left: -48px;
}

.search-form label {
    display: block;
    width: 200px;
    width: 150%;
    border-radius: 0.375rem;
    border: 1px solid #edeefa;
    position: relative;
    transition: border-color 0.3s ease;
    background-color: #F8F8FA;
    height: 37px;
    object-fit: contain;
}

.search-form label:hover {
    border-color: #999;
}

.search-form label input {
    border: none;
    outline: none;
    padding: 18px 0;
    text-indent: 14px;
    font-size: 14px;
    background-color: transparent;
    height: 25px;
}

.search-form label .search-icon {
    position: absolute;
    left: 207px;
    top: 4px;
    font-size: 18px;
}

.ask-question-btn {
    border: none;
    width: 132px;
    height: 37px;
    border-radius: 5px;
    margin-left: 40px;
    color: white;
    background-color: #30AEF6;
    transition: all 0.3s linear;
}

.ask-question-btn:hover {
    background-color: #0665cb;
}

.logoName,
nav,
.search-form,
.user-info {
    margin-right: 50px;
}

.user-info {
    display: flex;
    align-items: center;
    margin-right: 0px;
    width: auto;
}

.message,
.private-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

.message-detail,
.private-message-detail {
    font-size: 14px;
}

.message-icon,
.private-message-icon {
    font-size: 18px;
    margin-bottom: 5px;
}

.user-avatar {
    object-fit: contain;
    width: 38px;
    height: 38px;
    border-radius: 10%;
    overflow: hidden;

    margin-top: 0px;
}

.user-actions {
    position: relative;
    cursor: pointer;
    width: auto;
    height: 30px;
    display: flex;
    flex-direction: column;
}

/* 整体容器样式 */
.notification-container {
    width: 357px;
    height: 468px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    position: absolute;
    left: -159px;
    top: 37px;
    background-color: white;
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transition: all ease-in-out 0.5s;
}

.notification-container2 {
    width: 357px;
    height: 468px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    position: absolute;
    left: -159px;
    top: 37px;
    background-color: white;
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transition: all ease-in-out 0.5s;
}

.message::before {
    content: "";
    background-color: #3487FF;
    transition: linear 0.3s;
    width: 0px;
    height: 2px;
    position: absolute;
    left: -3px;
    top: 49px;
}

.message:hover {
    color: #3487FF;
}

.message:hover::before {
    width: 36px;
}

.private-message::before {
    content: "";
    background-color: #3487FF;
    transition: linear 0.3s;
    width: 0px;
    height: 2px;
    position: absolute;
    left: -7px;
    top: 51px;
}

.private-message:hover {
    color: #3487FF;
}

.private-message:hover::before {
    width:50px;
}

/* 顶部标题栏样式 */
.notification-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 40px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 7px;
}

.message:hover .notification-container {
    opacity: 1;
    transform: scale(1);
}

.private-message:hover .notification-container2 {
    opacity: 1;
    transform: scale(1);
}

/* 菜单、用户、收藏文字样式 */
.menu-text,
.user-text,
.favorites-text {
    cursor: pointer;
    color: #495057;
}

/* 通知列表样式 */
.notification-list {
    padding: 14px 21px;
    height: 353px;
    display: block;
}

/* 单个通知项样式 */
.notification-item {
    padding: 10px 15px;
    font-size: 15px;
}

/* 发送者样式 */
.sender {
    font-weight: bold;
    color: #31adf6;
}

/* 操作样式 */
.action {
    color: #6c757d;
}

/* 问题样式 */
.question {
    margin-left: 5px;
    color: #2c3136;
}

/* 时间样式 */
.time {
    color: #adb5bd;
    font-size: 14px;
}

/* 底部栏样式 */
.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 40px;
    border-top: 1px solid #e9ecef;
}

/* 设置、查看全部通知文字样式 */
.settings-text,
.view-all-text {
    cursor: pointer;
    color: #495057;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 51px;
    left: -38px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    list-style: none;
    /* padding: 0px 13px; */
    width: 114px;
    overflow: hidden;
    /* width: 59px; */
    height: 0px;
    letter-spacing: 1px;
    transition: all linear 0.3s;

}

.dropdown-menu li {
    width: 100%;
    padding: 9px 13px;
    &:hover i{
        color: #71A3FF;
    }
}
.isLiked{
    color: red;
}
.dropdown-menu li a {
    color: #333;
}

.message {
    position: relative;
}

.last {
    border-bottom: none;
}

.little {
    font-size: 20px;
}

.middle {
    font-size: 19px;
}

.notification-item-header {
    color: #626b74;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
    text-align: center;
}

.notification-list2 {
    height: 381px;
    display: none;
}

.notification-list2 .notification-item {
    display: flex;
    align-items: center;
}

.notification-list2 .notification-item img {
    width: 38px;
    height: 38px;
    border-radius: 10%;
    overflow: hidden;
    background-color: #0665cb;
    margin-top: 4px;
}

.notification-list2 .notification-item .notification-item-detail {
    display: flex;
    flex-direction: column;
}

.notification-list2 .notification-item span {
    font-size: 15px;
    color: #333;
}

.notification-list2 .notification-item .id {
    font-weight: bold;
    font-size: 15px;
    color: #000;
}

.notification-item-img {
    margin: auto 15px;
}

.none {
    height: 381px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.none span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #626b74;
}

.none .big {
    font-size: 80px;
    color: #c1c8ce;
    /* line-height: 313px;
          text-align: center;*/
}

.menu-text {
    color: #ff9606;
}

.menu-icon {
    color: #ff9606;
}

.notification-item:hover {
    padding: 10 15px;
    background-color: #f8f8fa;
    border-radius: 5px;
}

.mainPage::before {
    content: "";
    background-color: #3487FF;
    transition: linear 0.3s;
    width: 0px;
    height: 2px;
    position: absolute;
    left: -3px;
    top: 33px;
}

.mainPage:hover {
    color: #3487FF;
}

.mainPage:hover::before {
    width: 47px;
}

.wait-answer::before {
    content: "";
    background-color: #3487FF;
    transition: linear 0.3s;
    width: 0px;
    height: 2px;
    position: absolute;
    left: -5px;
    top: 33px;
}

.wait-answer::before:hover {
    color: #3487FF;
}

.wait-answer:hover::before {
    width: 52px;
}

.mainPage {
    position: relative;
}

.mainPage:hover a {
    color: #3487FF;
}

.wait-answer {
    position: relative;
}

.wait-answer:hover a {
    color: #3487FF;
}

.message:hover .message-icon {
    color: #3487FF;
}

.private-message:hover .private-message-icon {
    color: #3487FF;
}

.private-message {
    position: relative;
}

.notification-list3 {
    height: 381px;
}

.notification-list3 .notification-item {
    display: flex;
    align-items: center;
}

.notification-list3 .notification-item img {
    width: 38px;
    height: 38px;
    border-radius: 10%;
    overflow: hidden;
    background-color: #0665cb;
    margin-top: 4px;
}

.notification-list3 .notification-item .notification-item-detail {
    display: flex;
    flex-direction: column;
}

.notification-list3 .notification-item span {
    font-size: 15px;
    color: #333;
}

.notification-list3 .notification-item .id {
    font-weight: bold;
    font-size: 15px;
    color: #000;
}

.private-message-text {
    color: #495057;
    text-align: center;
}

.user-actions:hover .dropdown-menu {
    height: 168px;
}

.dropdown-menu li:hover a {
    color: #3487FF;
}

.dropdown-menu li:hover {
    background-color: #f8f8fa;
}

.header {
    position: fixed;
    width: 100vw;
    z-index: 2;
}
